﻿namespace Analyse.DrawingPerformance.Model
{
    public class TextDrawElement : BaseDrawElement
    {
        public string Text { get; }
        public float Size { get; }
        public string Color { get; }
        public string FontPath { get; }

        /// <summary>
        /// TextDrawElement
        /// </summary>
        /// <param name="x"></param>
        /// <param name="y"></param>
        /// <param name="text"></param>
        /// <param name="size"></param>
        /// <param name="color">hex color code</param>
        public TextDrawElement(float x, float y, string text, float size, string color) : base(x, y)
        {
            this.Text = text;
            this.Size = size;
            this.Color = color;
        }

        /// <summary>
        /// TextDrawElement
        /// </summary>
        /// <param name="x"></param>
        /// <param name="y"></param>
        /// <param name="text"></param>
        /// <param name="size"></param>
        /// <param name="color">hex color code</param>
        /// <param name="fontPath"></param>
        public TextDrawElement(float x, float y, string text, float size, string color, string fontPath) : base(x, y)
        {
            this.Text = text;
            this.Size = size;
            this.Color = color;
            this.FontPath = fontPath;
        }
    }
}
